package com.crm.dao.mapper.customMapper.knowledgeitem;

import com.crm.model.vo.knowledgeitem.KnowledgeSectionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KnowledgeSectionCustomMapper {


    /**
     * @Description: 删除
     * @Param: [itemId, deleteStatus]
     * @Return: Boolean
     * @Author: lixq-f
     * @Date: 2021/4/20
     **/
    Boolean deleteById(@Param("sectionId") String sectionId, @Param("deleteStatus") short deleteStatus);


    /**
     * @Description: 根据条目ID删除
     * @Param: [itemId, deleteStatus]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/5/14
     **/
    Boolean deleteByItemId(@Param("itemId") String itemId, @Param("deleteStatus") short deleteStatus);


    /**
     * @Description: 根据知识条目ID获取章节列表
     * @Param: [itemId]
     * @Return: java.util.List<com.crm.model.vo.knowledgeitem.KnowledgeSectionVO>
     * @Author: lixq-f
     * @Date: 2021/5/7
     **/
    List<KnowledgeSectionVO> selectListByKnItemId(@Param("itemId") String itemId);
}
